﻿using System;
using System.Collections.Generic;
using System.Text;
using DAL;
using Model;

namespace BLL
{
    public class Tool_Code : BaseService<Tool_CodeInfo>
    {
        private static readonly DAL.Tool_Code dal = new DAL.Tool_Code();

        public override void SetCurrentRepository()
        {
            this.CurrentRepository = dal;
        }

        public IList<Tool_CodeInfo> Tool_Code_GetbyMultiFact(Tool_CodeInfo tci)
        {
            return dal.Tool_Code_GetbyMultiFact(tci);
        }

        public Tool_CodeInfo GetbyTcodeExis(string ToolCode)//, string Work_Shop
        {
            return dal.GetbyTcodeExis(ToolCode);//, Work_Shop
        }

        public Tool_CodeInfo GetbyToolTypeSpec(string ToolTypeSpec, string Work_Shop)
        {
            return dal.GetbyToolTypeSpec(ToolTypeSpec,Work_Shop);
        }
    }
}
